package com.ict.web.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ict.web.domain.ExtractReview;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 *三方出参详情对象
 *
 * @author ruoyi
 * @date 2022-03-01
 */
@Data
public class ReviewTaskThirdDetailVo {
    @ApiModelProperty(value = "评审任务Id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(type = IdType.ASSIGN_ID)
    private Long reviewTaskId;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "评审类型(0:方案评审 1：年度项目清单评审")
    private String reviewType;

    @ApiModelProperty(value = "是否转接第三方(0：否 1：是)")
    private String ifExchangeThird;

    @ApiModelProperty(value = "第三机构id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long ormId;

    @ApiModelProperty(value = "专家数量")
    private String expertNum;

    @ApiModelProperty(value = "评审开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
    private LocalDateTime reviewTimeStart;

    @ApiModelProperty(value = "评审结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
    private LocalDateTime reviewTimeEnd;

    @ApiModelProperty(value = "评审地点")
    private String reviewAddress;

    @ApiModelProperty(value = "节点")
    private String node;

    @ApiModelProperty(value = "节点状态")
    private String nodeStatus;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "抽取时间")
    private LocalDateTime extractTime;

    @ApiModelProperty(value = "抽取状态{1：专家待接受 2：专家已接受 3 ：专家待评价 4：专家已评价}")
    private String expertStatus;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "抽取专家集合")
    private List<ExtractExpertVo> extractExperts;

    @ApiModelProperty(value = "评审任务与抽取的专家关系表")
    private List<ExtractReview> extractReviews;
}
